package study.alibaba.sentinel.controller._1_flow;

import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.eggs.result.Result;
import study.eggs.result.Results;

import java.util.Map;

@Slf4j
@RestController
public class _03_FlowController {

    @RequestMapping("/flow3")
    public Result echo() {
        Map<String, Object> data = Maps.newHashMap();
        data.put("msg", "flow2 flow2 flow2");
        return Results.ok(data);
    }
}
